Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 300 #301

Merged
merged 2 commits into from
Aug 24, 2017
Merged

Issue 300 #301

merged 2 commits into from
Aug 24, 2017

Conversation

chrisbonilla95
Copy link
Contributor

Added methods to retrieve just Agents or Admins or End Users, as well as a method to retrieve any combination of those users and a method to return all users from given enterprise role ID.

I did not create a method for multiple enterprise Role IDs, I figure people can just call the method more than once if they need to.

All of this is based on information acquired here https://developer.zendesk.com/rest_api/docs/core/users#filters and I've tested everything but the enterprise stuff and it works for me. Ran all tests, 250 passed and 2 skipped, so that's good. Created my own as well, all 4 ran fine. Wasn't sure how to create one for enterprise method, so I didn't do one for that.

Anyways, this may not be best way to do it, but at least gets the ball rolling :)

Test new methods used to return users by role
Method to retrieve just agents or admins, or end users or any combination of the previous 3. Also a method to retrieve users in provided enterprise role.
@AppVeyorBot
Copy link

@mozts2005
Copy link
Member

Looks good to me Fixes #300

@mozts2005 mozts2005 closed this Aug 24, 2017
@mozts2005 mozts2005 reopened this Aug 24, 2017
@mozts2005 mozts2005 merged commit e61ab0d into Speedygeek:master Aug 24, 2017
@AppVeyorBot
Copy link

@chrisbonilla95 chrisbonilla95 deleted the issue-300 branch August 24, 2017 04:49
abc516 pushed a commit to abc516/ZendeskApi_v2 that referenced this pull request Oct 30, 2019
* Update UserTests.cs to Test New Methods

Test new methods used to return users by role

* Ability to Get Users by Roles

Method to retrieve just agents or admins, or end users or any combination of the previous 3. Also a method to retrieve users in provided enterprise role.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants